<?php
        /* @author huangchuting 
         * @time 2020.6.8
         * 删除书评
         * @param reviewId bookId
         *  */
        header("Content-type:text/html;charset=utf-8");
        require_once '../inc/review.php';
        $bookId=$_GET["bookId"];
        $reviewId=$_GET["reviewId"];
        if (isset($reviewId)) 
        {   
          
            $result=deleteReview($reviewId);
            echo "<script language='JavaScript'>;alert('已成功删除');location.href='../style/book.php?bookId=$bookId';</script>";
        }
        else {
            echo "<script language='JavaScript'>;alert('我也不知道为什么删除不成功，人品问题吧');window.location.href='../style/review.php?reviewId=$reviewId';</script>";
            return; 
        }
?>